<?php 

/*******ALL RIGHTS RESERVED WWW.MMOTOP.ORG 2010********/
//This script is owned by Jerry (kdonet@gmail.com, jerry.hdx@hotmail.com)

//start the session
session_start();

//check to make sure the session variable is registered
if(session_is_registered('admin')){

//session variable is registered, the user is ready to logout
session_unset();
session_destroy();
header("location:index.php");
}elseif(session_is_registered('login') || session_is_registered('username')){

//session variable is registered, the user is ready to logout
session_unset();
session_destroy();
header("location:index.php");
}else{
//the session variable isn't registered, the user shouldn't even be on this page
header("location:index.php");
}
?>